package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class DetermineIfAnObjectArrayIsNullOrEmpty {
	public static void main(String[] argv) {
		Object[] array = new String[]{"1", "abc", "level", null,
				"www.tah1986.com", "asdf 123"};
		System.out.println(nullOrEmptyArray(array));
	}

	public static boolean nullOrEmptyArray(Object[] array) {
		return (array == null || array.length == 0);
	}
}
